import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {
	public static void main(String[] args) {
		
		String body = "abcccc";
		
		Pattern p_hole = Pattern.compile("abc(.*?)");
      Matcher m = p_hole.matcher(body);
      while(m.find()){
    	  System.out.print(m.group(2)+">>");
      }
	}
}
